package com.czp.framework.exception;

import org.apache.log4j.Logger;

/**
 * 【环 境】：J2SE 1.7
 * @author   柴志鹏	CHAIZP@GMAIL.COM
 * @version  version 1.0
 * @since    2014-6-26
 */
public class IServiceException extends RuntimeException {
	private static final long serialVersionUID = -5924817738841112112L;
	private Logger logger = Logger.getLogger(this.getClass());
	
	public IServiceException() {
        super();
    }
    
    public IServiceException(String message) {
        super(message);
        this.logger.error("IServiceException: --> " + message + " Method Exception:");
    }
    
    public IServiceException(String message, Throwable cause) {
        super(message, cause);
        this.logger.error("IServiceException: --> " + message + " Method Exception:", cause);
    }
    
    public IServiceException(Throwable cause) {
        super(cause);
        this.logger.error("IServiceException: " + cause);
    }
}
